import { getRequest, postRequest } from '@/api/easyRequest'

export const List = function () {
    return getRequest('/policy/list') as Promise<any>
}

export const Edit = function (obj: any) {
    const { id } = obj
    return postRequest(id ? `/policy/edit?id=${id}` : '/policy/edit', obj)
}

export const Del = function (id: number) {
    return getRequest(`/policy/del?id=${id}`)
}
